#ifndef AUTOORDERBREAK_H
#define AUTOORDERBREAK_H

#include "autoorderbase.h"

class AutoOrderBreak : public AutoOrderBase
{
private:
    enum BUYSELLSIGNAL { BUYSIGNAL, SELLSIGNAL, NOSIGNAL };

public:
    AutoOrderBreak();

    void newTick(double price, time_t time);

    BUYSELLSIGNAL getBuySellSignal();

    //void changeTakeProfit();

    void buy();

    void sell();

    void changeStoploss();

private:
    double m_atr;
    int m_magic;
};

#endif